function DashAssistant() {
	this.appAssistant = Mojo.Controller.getAppController().assistant;
	this.x = this.appAssistant.getClient();
}

DashAssistant.prototype.launchStage = function() {
	this.appAssistant.handleLaunch();
};

DashAssistant.prototype.setup = function() {
	var c = this.controller;
	this.docId = this.x.xmpp('docs').add(c.document);
	this.x.xmpp('option','controller', this.controller);
	Mojo.Event.listen(this.controller.get('dashboard'), Mojo.Event.tap, this.launchStage.bind(this));

};

DashAssistant.prototype.activate = function() {
	console.log('activate');
};

DashAssistant.prototype.deactivate = function() {
	console.log('deactivate');
	Mojo.Event.stopListening(this.controller.get('dashboard'), Mojo.Event.tap, this.launchStage.bind(this));
};

DashAssistant.prototype.cleanup = function() {
	console.log('cleanup');
	this.x.xmpp('docs').del(this.docId);
	//this.appAssistant = Mojo.Controller.getAppController().assistant;
	//this.appAssistant.controller.showBanner('Tap here to keep dashboard running ..', {
	//	source: 'dash-cleanup'
	//});
};

